package no.ntnu.item.arctis.library.sessions.constructor;

import no.ntnu.item.arctis.runtime.Block;

public class Constructor extends Block {

	// Instance parameter. Edit only in overview page.
	public final java.lang.String prefix;
	// Instance parameter. Edit only in overview page.
	public final java.lang.String suffix;
	// Instance parameter. Edit only in overview page.
	public final int instances;
	// Instance parameter. Edit only in overview page.
	public final int delay;
	public int counter;
	// Do not edit this constructor.
	public Constructor(java.lang.String prefix, java.lang.String suffix, int instances, int delay) {
	    this.prefix = prefix;
	    this.suffix = suffix;
	    this.instances = instances;
	    this.delay = delay;
	}
	public int getInstances() {
		return instances;
	}
	public int getDelay() {
		return delay;
	}
	public void init() {
		counter = 0;
	}
	public String createID() {
		return prefix + (counter++) + suffix;
	}
}